package com.i2works.smartluolong.utils.entity;

import java.io.Serializable;
import java.util.List;

/**
 * 
 *通用树实体对象类
* @author koal koal@vip.qq.com
* @date 2015年11月7日 下午4:09:32 
*
 */
public class Tree implements Serializable {

		private Integer id;
		
		private Integer pid;// 父类ID
		
		private String text;//文本
		
		private Integer type;//文本
		
		private String state;//开关  
		
		private String url;// 资源代码
		
		private Integer sort;//排列
		 
		private Integer status; //状态
		
		private String iconCls; //图标
  
		private List<Tree> children;//子类集合

		public Integer getId() {
			return id;
		}

		public void setId(Integer id) {
			this.id = id;
		}

		public Integer getPid() {
			return pid;
		}

		public void setPid(Integer pid) {
			this.pid = pid;
		}

		public String getText() {
			return text;
		}

		public void setText(String text) {
			this.text = text;
		}

		public Integer getType() {
			return type;
		}

		public void setType(Integer type) {
			this.type = type;
		} 

		public String getState() {
			return state;
		}

		public void setState(String state) {
			this.state = state;
		}

		public String getUrl() {
			return url;
		}

		public void setUrl(String url) {
			this.url = url;
		}

		public Integer getSort() {
			return sort;
		}

		public void setSort(Integer sort) {
			this.sort = sort;
		}

		public Integer getStatus() {
			return status;
		}

		public void setStatus(Integer status) {
			this.status = status;
		}

		public String getIconCls() {
			return iconCls;
		}

		public void setIconCls(String iconCls) {
			this.iconCls = iconCls;
		}

		public List<Tree> getChildren() {
			return children;
		}

		public void setChildren(List<Tree> children) {
			this.children = children;
		}


	@Override
	public String toString() {
		return "Tree{" +
				"id=" + id +
				", pid=" + pid +
				", text='" + text + '\'' +
				", type=" + type +
				", state='" + state + '\'' +
				", url='" + url + '\'' +
				", sort=" + sort +
				", status=" + status +
				", iconCls='" + iconCls + '\'' +
				", children=" + children +
				'}';
	}
}
